package Dao;

import entity.PerFirstChild;
import util.JDBCUtil;

import java.util.List;

public class PerfirstChildDao {
    private static PerfirstChildDao perfirstChildDao;

    //根据id获取权限
    public List<PerFirstChild> one(int id) {
        List<PerFirstChild> list = null;
        String sql = "SELECT Pid,Pname,Plevel,Ppath FROM permission WHERE Pid = ?";
        list = JDBCUtil.list(sql, PerFirstChild.class, id);
        return list;
    }
}
